<div style="padding: 5px;">
	<ul>
	<?php foreach($midias as $midia): ?>
	<li id="show-img-buttons" style="float: left; padding-right: 5px;">
		<?php 
			echo link_to(
				image_tag("/uploads/thumb/".$midia["nm_midia"], array("rel" =>$midia["id_midia"], 'class' => 'thumbs')),
				image_path("/uploads/".$midia["nm_midia"]),
				array(
                	'id'        => 'preview',
                    'title'		=> $midia['ds_midia'],
                    'rel'		=> 'midia_gallery'
                )
            );
		?>
	</li>
	<?php endforeach; ?>
	</ul>
	<div style="clear:both;"></div>
</div>

<script type="text/javascript">
$(function()
{
    System.modaldata.openMidiaBox('midia_gallery', true);
});
</script>
